//
//  MusicForSonglist.m
//  OurRelaxDemo
//
//  Created by 王雅蓉 on 15/6/25.
//  Copyright (c) 2015年 于宾尧. All rights reserved.
//

#import "MusicForSonglist.h"

@implementation MusicForSonglist

-(void)dealloc
{
//    [_song_id release];
//    [_singer_id release];
//    [_album_id release];
//    
//    [_song_name release];
//    [_album_name release];
//    [_pick_count release];
//    [_singer_name release];
//    
//    [_url_list release];
    
    [super dealloc];
}

-(instancetype)initWithDic:(NSMutableDictionary *)dic
{
    if (self = [super init]) {
        
        [self setValuesForKeysWithDictionary:dic];
        
    }
    
    return self;
}

+(id)songListWithDic:(NSMutableDictionary *)dic
{
    return [[self alloc] initWithDic:dic];
}

+(NSMutableArray *)songListWithArray:(NSMutableArray *)array
{
    NSMutableArray *arrayM = [NSMutableArray array];
    
    for (NSMutableDictionary *dic in array) {
        
        MusicForSonglist *songList = [MusicForSonglist songListWithDic:dic];
        [arrayM addObject:songList];
        
    }
    
    return arrayM;
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

@end
